package com.jr.service.impl;

import com.jr.dao.IUserDao;
import com.jr.dao.impl.UserDaoImpl;
import com.jr.pojo.User;
import com.jr.service.IUserService;

public class UserServiceImpl implements IUserService {
    IUserDao iud=new UserDaoImpl();
    @Override
    public boolean addUser(User u) {
        return iud.insertUser(u)>0;
    }

    @Override
    public boolean queryUserByUser(User u) {
        boolean b = (iud.selectUserByUser(u)!=null);
        return b;
    }
}
